home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows 3-Pak 2 - Disc 2
/
Infomagic - Windows 3-Pak Volume 2 (Disc 2 of 3).iso
/
Chat---IRC
/
TURBOIRC.ZIP
/
data1.cab
/
TurboIRC_Scripts
/
EONWHOIS.txt
< prev
next >
Wrap
Text File
|
1999-05-05
|
4KB
|
180 lines
#noyield
// Whois TurboIRC Script
// Copyright ⌐ Chourdakis Michael , 1998
// This example
// Sends a /WHOIS reply formatted to either a server window , or to the relative query window .
// Load it : /_event ONWHOIS 7 0 0 +:$server 311 *|||+:$server 312 *|||+:$server 313 *|||+:$server 301 *|||+:$server 317 *|||+:$server 319 *|||+:$server 318 *|||?.\demos\uwhois.txt
// If you want this script to be fired whenever
// a user /msgs you , do that
// /_spevent IncomingPrivates /raw whois $nick
if (GetSOPTIONS($servernumber,"IsMaskWaiting")==1)
#unlock
return
endif
int IsQuery = 0
if (FindWindowFromTitle("$3")==-1)
IsQuery = 0
else
IsQuery = 1
endif
if ("$1"=="311")
goto R_311
endif
if ("$1"=="318")
goto R_318
endif
if ("$1"=="312")
goto R_312
endif
if ("$1"=="313")
goto R_313
endif
if ("$1"=="320")
goto R_320
endif
if ("$1"=="301")
goto R_301
endif
if ("$1"=="306")
goto R_306
endif
if ("$1"=="317")
goto R_317
endif
if ("$1"=="319")
goto R_319
endif
// other reply ? not possible , just for sure
return
// Process Now
:R_311
// This has :$server 311 $mynick nick username domain name <server(s)>
if (IsQuery==0)
// send to server window
/addtext $server 1,4 1,12 1,8 1,11 *
/addtext $server 12***WHOIS Information***
/addtext $server 4***Mask : 12$3!$4@$5 4Name $7*
else
// send to query window
/addtext $3 1,4 1,12 1,8 1,11 *
/addtext $3 12***WHOIS Information***
/addtext $3 4***Mask : 12$3!$4@$5 4Name $7*
endif
return
:R_312
// This has :$server 312 $mynick nick server
if (IsQuery==0)
// send to server window
/addtext $server 12***Server 4$4*
else
// send to query window
/addtext $3 12***Server 4$4*
endif
return
:R_301
// This has :$server 301 $mynick nick :away
if (IsQuery==0)
// send to server window
/addtext $server 12***Away 4$4*
else
// send to query window
/addtext $3 12***Away 4$4*
endif
return
:R_313
// This has :$server 313 $mynick nick :op reason
if (IsQuery==0)
// send to server window
/addtext $server 12***IRCOp 4$4*
else
// send to query window
/addtext $3 12***IRCOp 4$4*
endif
return
:R_320
// This has :$server 320 $mynick nick :IPNumInfo
if (IsQuery==0)
// send to server window
/addtext $server 12***Location 4$4*
else
// send to query window
/addtext $3 12***Location 4$4*
endif
return
:R_319
// This has :$server 319 $mynick nick :channels
if (IsQuery==0)
// send to server window
/addtext $server 12***Channels In 4$4*
else
// send to query window
/addtext $3 12***Channels In 4$4*
endif
return
:R_317
// This has :$server 317 $mynick nick secondsidle signontime
int SFU = atoi("$5")
string UT = UNIXTime(SFU)
if (IsQuery==0)
// send to server window
/addtext $server 12***Seconds Idle : 4 $4 , 3Signon time (GMT) : 4,8 %UT%
else
// send to query window
/addtext $3 12***Seconds Idle : 4 $4 , 3Signon time (GMT) : 4,8 %UT%
endif
return
:R_318
// This has :$server 318 $mynick nick end
if (IsQuery==0)
// send to server window
/addtext $server 4***End of /WHOIS***
/addtext $server 1,4 1,12 1,8 1,11 *
else
// send to query window
/addtext $3 4***End of /WHOIS***
/addtext $3 1,4 1,12 1,8 1,11 *
endif
return